package com.ruoyi.purchase.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.purchase.mapper.PurchaseStoreDetailMapper;
import com.ruoyi.purchase.domain.PurchaseStoreDetail;
import com.ruoyi.purchase.service.IPurchaseStoreDetailService;

/**
 * 入库详情Service业务层处理
 * 
 * @author wonderland
 * @date 2023-07-17
 */
@Service
public class PurchaseStoreDetailServiceImpl implements IPurchaseStoreDetailService 
{
    @Autowired
    private PurchaseStoreDetailMapper purchaseStoreDetailMapper;

    /**
     * 查询入库详情
     * 
     * @param id 入库详情主键
     * @return 入库详情
     */
    @Override
    public PurchaseStoreDetail selectPurchaseStoreDetailById(Long id)
    {
        return purchaseStoreDetailMapper.selectPurchaseStoreDetailById(id);
    }

    /**
     * 查询入库详情列表
     * 
     * @param purchaseStoreDetail 入库详情
     * @return 入库详情
     */
    @Override
    public List<PurchaseStoreDetail> selectPurchaseStoreDetailList(PurchaseStoreDetail purchaseStoreDetail)
    {
        return purchaseStoreDetailMapper.selectPurchaseStoreDetailList(purchaseStoreDetail);
    }

    /**
     * 新增入库详情
     * 
     * @param purchaseStoreDetail 入库详情
     * @return 结果
     */
    @Override
    public int insertPurchaseStoreDetail(PurchaseStoreDetail purchaseStoreDetail)
    {
        return purchaseStoreDetailMapper.insertPurchaseStoreDetail(purchaseStoreDetail);
    }

    /**
     * 修改入库详情
     * 
     * @param purchaseStoreDetail 入库详情
     * @return 结果
     */
    @Override
    public int updatePurchaseStoreDetail(PurchaseStoreDetail purchaseStoreDetail)
    {
        return purchaseStoreDetailMapper.updatePurchaseStoreDetail(purchaseStoreDetail);
    }

    /**
     * 批量删除入库详情
     * 
     * @param ids 需要删除的入库详情主键
     * @return 结果
     */
    @Override
    public int deletePurchaseStoreDetailByIds(Long[] ids)
    {
        return purchaseStoreDetailMapper.deletePurchaseStoreDetailByIds(ids);
    }

    /**
     * 删除入库详情信息
     * 
     * @param id 入库详情主键
     * @return 结果
     */
    @Override
    public int deletePurchaseStoreDetailById(Long id)
    {
        return purchaseStoreDetailMapper.deletePurchaseStoreDetailById(id);
    }
}
